package com.itheima.demo001;

public class exercise37 {
    public static void main(String[] args) {
        int[] arr = {11,22,33,44,55};
        boolean result = contains(arr,66);
        System.out.println(result);
    }
    public static boolean contains(int[] arr, int number){
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] == number){
                return true;
            }
        }
       return false;
    }
}
